package com.gu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * The table 留言表
 */
public class LeavingMessageDO{

    /**
     * id id.
     */
    private Integer id;
    /**
     * reviews 评论/留言.
     */
    private String reviews;
    /**
     * userId 用户id.
     */
    private Integer userId;
    /**
     * createTime 创建时间.
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    /**
     * updateTime 最后一次修改时间.
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 被评论人id
     */
    private Integer parentId;

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String areaCode;

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    /**
     * Set id id.
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * Get id id.
     *
     * @return the string
     */
    public Integer getId(){
        return id;
    }

    /**
     * Set reviews 评论/留言.
     */
    public void setReviews(String reviews){
        this.reviews = reviews;
    }

    /**
     * Get reviews 评论/留言.
     *
     * @return the string
     */
    public String getReviews(){
        return reviews;
    }

    /**
     * Set userId 用户id.
     */
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    /**
     * Get userId 用户id.
     *
     * @return the string
     */
    public Integer getUserId(){
        return userId;
    }

    /**
     * Set createTime 创建时间.
     */
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }

    /**
     * Get createTime 创建时间.
     *
     * @return the string
     */
    public Date getCreateTime(){
        return createTime;
    }

    /**
     * Set updateTime 最后一次修改时间.
     */
    public void setUpdateTime(Date updateTime){
        this.updateTime = updateTime;
    }

    /**
     * Get updateTime 最后一次修改时间.
     *
     * @return the string
     */
    public Date getUpdateTime(){
        return updateTime;
    }


}
